﻿
@{
    ViewBag.Title = "ReplyMyself";
}
@model IEnumerable<Message_Board.Models.Message>
<h2>@ViewBag.userName</h2>
<div >
    <table class="table table-striped" width="100%">
        <tr>
            <th> 留言内容 </th>
            <th> 留言主题 </th>
            <th> 留言类型 </th>
            <th> 留言时间 </th>
            <th> 留言楼数 </th>
            <th> 留言人：</th>
            <th> 操作</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td> <label><a href="/Messages/Details2?id=@item.ID">@item.Content</a> </label> </td>
                <td> <label>@item.Subject </label> </td>
                <td> <label>@item.MessageType</label> </td>
                <td> <label>@item.Time</label> </td>
                <td> <label>@item.Number</label> </td>
                <td> <label>@item.UserName</label> </td>
                <td> <label><a href="/Messages/Reply?id=@item.ID">回复</a></label> </td>
            </tr>  }
    </table>
</div>

    <div class="container" style="text-align: center; border:none">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin: 0;">
            <ul id="PagerID" class="pagination pagination-sm">
                <li><a href="/Messages/ReplyMyself?currentPage=1">首页 </a></li>
                <li><a href="/Messages/ReplyMyself?currentPage=@((int)ViewBag.currentPage - 1)">上页 </a></li>
                <li>
                    <span>
                        页:
                        <Label ID="lbCurrentPage" style="margin-bottom:0">@ViewBag.currentPage</Label>/<Label ID="lbMaxPage" style="margin-bottom:0">@ViewBag.maxPage</Label>
                    </span>
                </li>
                <li><a href="/Messages/ReplyMyself?currentPage=@((int)ViewBag.currentPage + 1)">下页 </a></li>
                <li><a href="/Messages/ReplyMyself?currentPage=@ViewBag.maxPage">末页 </a></li>
                <li><a onclick="goto()">GoTo </a></li>
                <li>
                    <input type="text" id="txtInputNumber" style="width: 50px;height:28px">
                </li>
            </ul>
        </div>
    </div>


